package com.gavindon.android.entity

import java.io.Serializable

/**
 * description:
 * Created by liNan on  2022-2-6 11:48
 */
data class VideoTreeResp(
    val catalogId: String,
    val catalogName: String?,
    //catalogType chapter
    val catalogType: String,
    val courseId: String,
    val introduction: String,
    val linkObjId: String,
    val parentCatalogId: String,
    val parentCatalogName: String,
    val sequenceValue: Int,
    val videoDuration: String = "0",
    //为了拼接章节名字
    var chapterName: String?,
    var isFree: String,
    val payType: Int,
    val children: MutableList<VideoTreeResp>,
    //自已添加 为了判断是否显示播放动画
    var isSelect: Boolean = false,
    //0需要付费 1可免费观看
    val freeViewing: String,
    var isPlay: Boolean
) : Serializable

data class VideoDetail(
    val catalogName: String,
    val courseId: String,
    val fileSize: Any,
    val fileUrl: String,
    val lessonId: String,
    val parentCatalogId: String,
    val sequenceValue: Int,
    val videoDuration: Int,
    val videoId: String,
    val payType: Int,
)

data class CourseDetailResp(
    val assistantName: String,
    val courseAnnouncement: String,
    val courseId: String,
    val courseIntroduction: String,
    val courseName: String,
    val courseStatus: String,
    val courseStatus_tx: String,
    val courseTags: String,
    val externalLink: Int,
    val externalLinkUrl: String,
    val featured: Int,
    val `file`: FileObj,
    val label: String,
    val label_tx: String,
    val lecturerName: String,
    val newest: Int,
    val numLesson: Int,
    val numTotalLesson: Int,
    val payType: Int,
    val popular: Int,
    val publish: Int,
    val recommend: Int,
    val sequenceValue: Int,
    val showType: Int,
    val subjectId: String,
    val subjectType: Int,
    val subjectURLName: String,
    val topStatus: Int,
    val isFree: String,
    val videoTotalDuration: Int,
    val originalPrice: String,
    val presentPrice: String,
    val serviceLife: String?,
    val serviceLifeCompany: String?,
)

data class CourseFile(
    val base64EncoderImg: Any,
    val fileId: String,
    val fileName: String,
    val fileSize: Int,
    val fileSizeFormat: Any,
    val fileUrl: String,
    val suffixName: Any,
    val videoDuration: Any
)

